package net.droiding.server.parser;

import net.droiding.server.pojo.ProviderKey;


public class KmlParserFactory {
	public static KmlParser newParser(ProviderKey type) {
		if (ProviderKey.BCN.equals(type))
			return new BcnParser();
		if (ProviderKey.MXP.equals(type))
			return new MxpParser();
		throw new IllegalArgumentException("parser " + type + " not found !");
	}
}
